<template>
    <div class="post-share-container">
        <img :src="imgUrl" alt="">
    </div>
</template>
<script>
import market from '@/api/market.js'
export default {
    data () {
        return {
            imgUrl: ''
        }
    },
    mounted () {
        const params = {
            agentId: this.$route.query.agentId,
            id: this.$route.query.pid,
            type: this.$route.query.type
        }
        if(~~this.$route.query.type === 1) {
            params.price = this.$route.query.price * 100
        }
        market.getPoster(params).then(res => {
            if (res.code == 0) {
                this.imgUrl = res.t
            }
        })
    }
}
</script>

<style lang="less" scoped>
    .post-share-container {
        height: 100vh;
        box-sizing: border-box;
        // background: url(../../assets/img/haibao-bg.png) no-repeat;
        background-size: 100%;
        // padding: 0.3rem;
        img {
            width: 100%;
        }
        // .save-btn {
        //     width: 6.9rem;
        //     height: 0.25rem;
        //     background: url(../../assets/img[表情]ve-img-btn.png) no-repeat;
        //     background-size: 100%;
        // }
    }
</style>